<?php
require_once('include/inc_database.php'); // only for $CSS_VERSION.
//require_once('include/inc_useraccount.php');
require_once('include/inc_recommendation.php');

// Open DB connection.
$dbobj = new DatabaseObject();
$dbobj->OpenConnection();

//$username = $_GET['user'];
?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?=SiteConst('site_name')?></title>

<link rel="shortcut icon" href="images/favicon.gif" type="image/x-icon">
<meta name="viewport" content="width=700"/>

<style type="text/css">

	@import url('rec.css?<?=$CSS_VERSION?>');

	/* form */
	tr.rec_form_row > td {
		padding-bottom: 8px;
	}

	tr.rec_form_row .info_only {
		color: #888;
		font-style: italic;
	}

	tr.rec_form_row .required {
		font-weight: bold;
	}


</style>
</head>

<body>

<div id="main">

<h1 style="margin-bottom:10px;">
	<a href="./"><img src="images/logo02b.jpg" align="middle" border="0"/></a>
	Create Account
</h1>

	
<div class="inset_box">
<form name="add_form" method="post" action="createuser2.php" onsubmit="document.add_form.robot_detector.value = 'abc' + 'fed';">
	<input type="hidden" name="username" VALUE="<?=$username?>">
	<input type="hidden" name="robot_detector" VALUE="robot">

	<table style="width:100%;">
	<tr class="rec_form_row">
		<td class="required">Username:</td>
		<td>
			<input type="text" name="username" value="" size="20">
			<!--<div class="info_only">Type band name, or album, or song here.</div>-->
		</td>
	</tr>
	<tr class="rec_form_row">
		<td class="required">Password:</td>
		<td>
			<input type="password" name="password" value="" size="20">
		</td>
	</tr>
	<tr class="rec_form_row">
		<td class="required">Confirm password:</td>
		<td>
			<input type="password" name="password2" value="" size="20">
		</td>
	</tr>
	<tr class="rec_form_row">
		<td class="required">Email:</td>
		<td>
			<input type="text" name="email" value="" size="30">
			<div class="info_only">For password reset, and other essentials, when such systems exist.</div>
		</td>
	</tr>
	<tr class="rec_form_row">
		<td></td>
		<td>
			<input type="checkbox" name="emailNewRecs" checked> Email me subscription feed updates
			<div class="info_only" style="margin-left:25px;">Recommended, unless using rss feeds instead.  (You can change this setting any time.)</div>
		</td>
	</tr>
	<tr class="rec_form_row">
		<td>My name (optional):</td>
		<td>
			<input type="text" name="fullName" value="" size="20">
		</td>
	</tr>
	<tr class="rec_form_row">
		<td>My homepage (optional):</td>
		<td>
			<input type="text" name="url" value="" size="50">
			<div class="info_only">Must begin with http://, etc.</div>
		</td>
	</tr>
	<tr class="rec_form_row">
		<td></td>
		<td>
			<input type="submit" name="submit" value="Create user">
		</td>
	</tr>
	</table>

</form>
</div>

<hr />

<div style="text-align:center;">
	<br>Return to <a href="./"><?=SiteConst('site_name')?></a>
</div>

</div>


</body>
</html>
